//
//  HMCommonTools.swift
//  微博
//
//  Created by 程双岐 on 16/9/23.
//  Copyright © 2016年 heima. All rights reserved.
//

import UIKit

let SwitchRootVCNotification = "SwitchRootVCNotification"

let DidSelectedEmoticonNotification = "DidSelectedEmoticonNotification"

let DidSelectedDeleteEmoticonNotification = "DidSelectedDeleteEmoticonNotification"

let ScrenWidth = UIScreen.main.bounds.size.width

let ScrenHeight = UIScreen.main.bounds.size.height

//创建随机颜色
func RandomColor()->UIColor{
    let red = arc4random() % 256
    let green = arc4random() % 256
    let blue = arc4random() % 256
    
    //参考前面的类型 自动转换
    return UIColor(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1)
}
